import { request, config } from 'utils'

const { api } = config
const { adminCompanyAccountDetailListAll, adminCompanyAccountDetailListbrif, adminCompanyAccountDetailList, adminCompanyAccountDetailDelete, adminCompanyAccountDetailUpdate, adminCompanyAccountDetailAdd, adminCompanyAccountDetailQuery } = api

export async function list (params) {
  return request({
    url: adminCompanyAccountDetailList,
    method: 'put',
    data: params,
  })
}

export async function detailAdd (params) {
  return request({
    url: adminCompanyAccountDetailAdd,
    method: 'post',
    data: params,
  })
}

export async function listall (params) {
  return request({
    url: adminCompanyAccountDetailListAll,
    method: 'put',
    data: params,
  })
}
export async function listbrif (params) {
  return request({
    url: adminCompanyAccountDetailListbrif,
    method: 'put',
    data: params,
  })
}

export async function query (params) {
  return request({
    url: adminCompanyAccountDetailQuery,
    method: 'put',
    data: params,
  })
}


export async function create (params) {
  return request({
    url: adminCompanyAccountDetailAdd,
    method: 'post',
    data: params.data,
  })
}

export async function update (params) {
  return request({
    url: adminCompanyAccountDetailUpdate,
    method: 'put',
    data: params,
  })
}
export async function remove (params) {
  return request({
    url: adminCompanyAccountDetailDelete,
    method: 'delete',
    data: params,
  })
}

